package com.fanyouzhao.ehome.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @Author: fanyouzhao
 * @Date: 11:12 2021/5/14
 */
public class GetVo {
    private Integer id;
    private String name;
    private String phone;
    @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private Date collectExpire;
    @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private Date useExpire;

    public GetVo() {
    }

    public GetVo(Integer id, String name, String phone, Date collectExpire, Date useExpire) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.collectExpire = collectExpire;
        this.useExpire = useExpire;
    }

    @Override
    public String toString() {
        return "GetVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", collectExpire=" + collectExpire +
                ", useExpire=" + useExpire +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPhone() {
        return phone;
    }

    public Date getCollectExpire() {
        return collectExpire;
    }

    public Date getUseExpire() {
        return useExpire;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String cpName) {
        this.name = cpName;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setCollectExpire(Date collectExpire) {
        this.collectExpire = collectExpire;
    }

    public void setUseExpire(Date useExpire) {
        this.useExpire = useExpire;
    }
}
